##[group]Deploy identity,search,webhooks,security
node scripts/deploy.mjs deploy --only "identity,search,webhooks,security" --force --no-migrations --concurrency 2
##[endgroup]
shell: bash -e /home/runner/_temp/18dfa9e76236869a.sh
Deploying 35b6acdef4d4 (Merge project overview: one branch_drift call, spliced histories, cached tags, 6 repos calls instead of 25)

unit      stage  action  live          migrations  why
--------  -----  ------  ------------  ----------  ---------------------------------------------------------------------------------
identity  core   deploy  33da85c42bf0  -           14 changed files (services/identity/migrations/0036_email_confirmation_codes.sql)
search    core   deploy  33da85c42bf0  -           6 changed files (crates/contracts/src/accounts.rs via crates/contracts)
webhooks  core   deploy  33da85c42bf0  -           6 changed files (crates/contracts/src/accounts.rs via crates/contracts)
security  core   deploy  33da85c42bf0  -           6 changed files (crates/contracts/src/accounts.rs via crates/contracts)

4 to deploy: core (identity, search, webhooks, security)
== core: identity, search, webhooks, security
[identity]  ⛅️ wrangler 4.146.0
[identity] ────────────────────
[identity] [custom build] Running: node ../../scripts/build-rust-worker.mjs
[search]  ⛅️ wrangler 4.146.0
[search] ────────────────────
[search] [custom build] Running: node ../../scripts/build-rust-worker.mjs
[search] [custom build] [INFO]: Checking for the Wasm target...
[search] [custom build] 
[identity] [custom build] [INFO]: Checking for the Wasm target...
[identity] [custom build] 
[search] [custom build] [INFO]: Compiling to Wasm...
[search] [custom build] 
[identity] [custom build] [INFO]: Compiling to Wasm...
[identity] [custom build] 
[identity] [custom build] 
[identity] [custom build]     Blocking waiting for file lock on package cache
[identity] [custom build] 
[search] [custom build]     Blocking waiting for file lock on package cache
[search] [custom build] 
[identity] [custom build]     Blocking waiting for file lock on package cache
[identity] [custom build] 
[search] [custom build]     Blocking waiting for file lock on package cache
[search] [custom build] 
[identity] [custom build]     Blocking waiting for file lock on package cache
[identity] [custom build] 
[search] [custom build]     Blocking waiting for file lock on package cache
[search] [custom build] 
[identity] [custom build]     Blocking waiting for file lock on build directory
[identity] [custom build] 
[search] [custom build]    Compiling g1t-contracts v0.1.0 (/home/runner/work/repo/crates/contracts)
[search] [custom build] 
[search] [custom build]    Compiling g1t-kit v0.1.0 (/home/runner/work/repo/crates/kit)
[search] [custom build] 
[search] [custom build]    Compiling g1t-search v0.1.0 (/home/runner/work/repo/services/search)
[search] [custom build] 
[search] [custom build]     Finished `release` profile [optimized] target(s) in 49.62s
[search] [custom build] 
[identity] [custom build]    Compiling g1t-secrets v0.1.0 (/home/runner/work/repo/crates/secrets)
[identity] [custom build] 
[identity] [custom build]    Compiling g1t-identity v0.1.0 (/home/runner/work/repo/services/identity)
[identity] [custom build] 
[search] [custom build] [INFO]: Optimizing wasm binaries with `wasm-opt`...
[search] [custom build] 
[search] [custom build] [INFO]: :-)Done in 50.95s
[search] [custom build] [INFO]: :-) Your wasm pkg is ready to publish at /home/runner/work/repo/services/search/build/.tmp.
[search] [custom build] 
[search] [custom build] 
[search] [custom build]   index.js  26.7kb
[search] [custom build] 
[search] [custom build] ⚡ Done in 10ms
[search] [custom build] 
[search] Total Upload: 1617.61 KiB / gzip: 377.96 KiB
[search] Worker Startup Time: 4 ms
[search] Your Worker has access to the following bindings:
[search] Binding                          Resource         
[search] env.JOBS (inherited)             Queue            
[search] env.DB (g1t-search)              D1 Database      
[search] env.IDENTITY (g1t-identity)      Worker           
[search] env.REPOS (g1t-repos)            Worker           
[search] env.WORK (g1t-work)              Worker           
[search] Uploaded g1t-search (2.23 sec)
[search] Deployed g1t-search triggers (1.96 sec)
[search]   Producer for g1t-search-jobs
[search]   Consumer for g1t-events-search
[search]   Consumer for g1t-search-jobs
[search] Current Version ID: f92d89dc-dced-441c-98c7-15315345f0c9
[webhooks]  ⛅️ wrangler 4.146.0 (update available 4.149.0)
[webhooks] ───────────────────────────────────────────────
[webhooks] [custom build] Running: node ../../scripts/build-rust-worker.mjs
[webhooks] [custom build] [INFO]: Checking for the Wasm target...
[webhooks] [custom build] 
[webhooks] [custom build] [INFO]: Compiling to Wasm...
[webhooks] [custom build] 
[webhooks] [custom build]     Blocking waiting for file lock on build directory
[webhooks] [custom build] 
[identity] [custom build]     Finished `release` profile [optimized] target(s) in 1m 13s
[identity] [custom build] 
[webhooks] [custom build]    Compiling g1t-webhooks v0.1.0 (/home/runner/work/repo/services/webhooks)
[webhooks] [custom build] 
[identity] [custom build] [INFO]: Optimizing wasm binaries with `wasm-opt`...
[identity] [custom build] 
[identity] [custom build] [INFO]: :-)Done in 1m 17s
[identity] [custom build] [INFO]: :-) Your wasm pkg is ready to publish at /home/runner/work/repo/services/identity/build/.tmp.
[identity] [custom build] 
[identity] [custom build] 
[identity] [custom build]   index.js  27.7kb
[identity] [custom build] 
[identity] [custom build] ⚡ Done in 48ms
[identity] [custom build] 
[identity] Total Upload: 4209.12 KiB / gzip: 1007.85 KiB
[webhooks] [custom build]     Finished `release` profile [optimized] target(s) in 22.21s
[webhooks] [custom build] 
[webhooks] [custom build] [INFO]: Optimizing wasm binaries with `wasm-opt`...
[webhooks] [custom build] 
[webhooks] [custom build] [INFO]: :-)Done in 22.93s
[webhooks] [custom build] [INFO]: :-) Your wasm pkg is ready to publish at /home/runner/work/repo/services/webhooks/build/.tmp.
[webhooks] [custom build] 
[webhooks] [custom build] 
[webhooks] [custom build]   index.js  27.5kb
[webhooks] [custom build] 
[webhooks] [custom build] ⚡ Done in 10ms
[webhooks] [custom build] 
[identity] Worker Startup Time: 6 ms
[identity] Your Worker has access to the following bindings:
[identity] Binding                                                             Resource                  
[identity] env.AVATARS (e627b571f07047e187c03e1fc2b3bbdd)                      KV Namespace              
[identity] env.EMAIL (unrestricted)                                            Send Email                
[identity] env.DB (g1t)                                                        D1 Database               
[identity] env.EVENTS (g1t-events)                                             Worker                    
[identity] env.REPOS (g1t-repos)                                               Worker                    
[identity] env.PROJECTS (g1t-projects)                                         Worker                    
[identity] env.BILLING (g1t-billing)                                           Worker                    
[identity] env.PROTECTED_WORKSPACES ("flagon-io")                              Environment Variable      
[identity] env.GITHUB_APP_CLIENT_ID ("Iv23liZS94alfjIUn1eW")                   Environment Variable      
[identity] env.REGISTRATION_MODE ("invite")                                    Environment Variable      
[identity] env.INVITES_PER_USER ("5")                                          Environment Variable      
[identity] env.INVITE_TTL_DAYS ("30")                                          Environment Variable      
[identity] env.INVITE_STAFF_WORKSPACES ("flagon-io")                           Environment Variable      
[identity] env.WAITLIST_NOTIFY_EMAIL ("hey@flagon.io")                         Environment Variable      
[identity] Uploaded g1t-identity (2.34 sec)
[identity] Deployed g1t-identity triggers (0.64 sec)
[identity]   schedule: */15 * * * *
[identity] Current Version ID: 09772246-607d-4a2c-94c0-78e92e2bc01b
[webhooks] Total Upload: 1032.76 KiB / gzip: 258.54 KiB
[security]  ⛅️ wrangler 4.146.0 (update available 4.149.0)
[security] ───────────────────────────────────────────────
[security] [custom build] Running: node ../../scripts/build-rust-worker.mjs
[security] [custom build] [INFO]: Checking for the Wasm target...
[security] [custom build] 
[security] [custom build] [INFO]: Compiling to Wasm...
[security] [custom build] 
[security] [custom build]    Compiling g1t-contracts v0.1.0 (/home/runner/work/repo/crates/contracts)
[security] [custom build] 
[security] [custom build]    Compiling g1t-scan v0.1.0 (/home/runner/work/repo/crates/scan)
[security] [custom build]    Compiling g1t-actions v0.1.0 (/home/runner/work/repo/crates/actions)
[security] [custom build] 
[webhooks] Worker Startup Time: 3 ms
[webhooks] Your Worker has access to the following bindings:
[webhooks] Binding                          Resource         
[webhooks] env.DB (g1t-webhooks)            D1 Database      
[webhooks] env.REPOS (g1t-repos)            Worker           
[webhooks] env.IDENTITY (g1t-identity)      Worker           
[webhooks] Uploaded g1t-webhooks (1.67 sec)
[webhooks] Deployed g1t-webhooks triggers (1.21 sec)
[webhooks]   schedule: * * * * *
[webhooks]   Consumer for g1t-events-webhooks
[webhooks] Current Version ID: ec1b3094-6f63-49e4-97ff-792530527aa2
[security] [custom build]    Compiling g1t-kit v0.1.0 (/home/runner/work/repo/crates/kit)
[security] [custom build] 
[security] [custom build]    Compiling g1t-security v0.1.0 (/home/runner/work/repo/services/security)
[security] [custom build] 
[security] [custom build]     Finished `release` profile [optimized] target(s) in 1m 02s
[security] [custom build] 
[security] [custom build] [INFO]: Optimizing wasm binaries with `wasm-opt`...
[security] [custom build] 
[security] [custom build] [INFO]: :-)Done in 1m 06s
[security] [custom build] [INFO]: :-) Your wasm pkg is ready to publish at /home/runner/work/repo/services/security/build/.tmp.
[security] [custom build] 
[security] [custom build] 
[security] [custom build]   index.js  27.4kb
[security] [custom build] 
[security] [custom build] ⚡ Done in 7ms
[security] [custom build] 
[security] Total Upload: 5483.31 KiB / gzip: 1394.04 KiB
[security] Worker Startup Time: 8 ms
[security] Your Worker has access to the following bindings:
[security] Binding                              Resource                  
[security] env.DB (g1t-security)                D1 Database               
[security] env.IDENTITY (g1t-identity)          Worker                    
[security] env.REPOS (g1t-repos)                Worker                    
[security] env.WORK (g1t-work)                  Worker                    
[security] env.RUNNER (g1t-runner)              Worker                    
[security] env.BILLING (g1t-billing)            Worker                    
[security] env.ACTIONS (g1t-actions)            Worker                    
[security] env.EVENTS (g1t-events)              Worker                    
[security] env.SITE_URL ("https://g1t.sh")      Environment Variable      
[security] Uploaded g1t-security (2.82 sec)
[security] Deployed g1t-security triggers (1.32 sec)
[security]   schedule: */30 * * * *
[security]   schedule: */5 * * * *
[security]   Consumer for g1t-events-security
[security] Current Version ID: 6d29029f-a71b-49d5-9028-797cc0129b89

unit      stage  result  version                               time    note
--------  -----  ------  ------------------------------------  ------  ----
identity  core   ok      09772246-607d-4a2c-94c0-78e92e2bc01b  104.9s
search    core   ok      f92d89dc-dced-441c-98c7-15315345f0c9  79.2s
webhooks  core   ok      ec1b3094-6f63-49e4-97ff-792530527aa2  28.7s
security  core   ok      6d29029f-a71b-49d5-9028-797cc0129b89  73.1s

Deployed in 181.6s.
